import { Pagetackinfo } from "@/uni-sub-base/module/gather/api.js"
import { isMobile, getUserAgent, getPlatform, getBrowser } from "@/uni-sub-base/utils/platformUtil.js"
const gatherUtil = {
    pagetackinfo: (param) => {
        param.isMobile = isMobile()
        param.userAgent = getUserAgent()
        param.platform = getPlatform()
        param.browser = getBrowser()
        return new Promise((resolve, reject) => {
            Pagetackinfo(param).then((res) => {
                resolve(res)
            })
        })
    },
}

module.exports = {
    pagetackinfo: gatherUtil.pagetackinfo,
}
